<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Distributive property</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Distributive_property"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Distributive_property rootpage-Distributive_property skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Distributive property</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">"Distributivity" redirects here; not to be confused with <a href="Distributivism" class="mw-redirect" title="Distributivism">Distributivism</a>.</div>
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */
.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}
/* end https://en.wikipedia.org/ */
</style><table class="infobox vcard"><caption class="infobox-title fn" style="padding-bottom:0.2em;">Distributive property</caption><tbody><tr><td colspan="2" class="infobox-image"><span class="skin-invert-image" typeof="mw:File"></span><div class="infobox-caption">Visualization of distributive law for positive numbers</div></td></tr><tr><th scope="row" class="infobox-label">Type</th><td class="infobox-data"><a href="Principle" title="Principle">Law</a>, <a href="Rule_of_replacement" title="Rule of replacement">rule of replacement</a></td></tr><tr><th scope="row" class="infobox-label">Field</th><td class="infobox-data"><style data-mw-deduplicate="TemplateStyles:r1126788409">
/* start https://en.wikipedia.org/ */
.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}
/* end https://en.wikipedia.org/ */
</style><div class="plainlist">
<ul><li><a href="Elementary_algebra" title="Elementary algebra">Elementary algebra</a></li>
<li><a href="Boolean_algebra" title="Boolean algebra">Boolean algebra</a></li>
<li><a href="Abstract_algebra" title="Abstract algebra">Abstract algebra</a></li>
<li><a href="Set_theory" title="Set theory">Set theory</a></li>
<li><a href="Propositional_calculus" class="mw-redirect" title="Propositional calculus">Propositional calculus</a></li></ul>
</div></td></tr><tr><th scope="row" class="infobox-label">Symbolic statement</th><td class="infobox-data"><div class="plainlist">
<ol><li>Elementary algebra
<dl><dd><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\cdot (y+z)=x\cdot y+x\cdot z}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>y</mi>
<mo>+</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>y</mi>
<mo>+</mo>
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>z</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x\cdot (y+z)=x\cdot y+x\cdot z}</annotation>
</semantics>
</math></span></span></dd></dl></li>
<li>Propositional calculus:
<ol><li><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (P\land (Q\lor R))\Leftrightarrow ((P\land Q)\lor (P\land R))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (P\land (Q\lor R))\Leftrightarrow ((P\land Q)\lor (P\land R))}</annotation>
</semantics>
</math></span><img src="./f6e44e66770303cef4cf29e118b8e6966ccd6fbf.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:38.014ex; height:2.843ex;" alt="{\displaystyle (P\land (Q\lor R))\Leftrightarrow ((P\land Q)\lor (P\land R))}" loading="lazy"></span></li>
<li><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (P\lor (Q\land R))\Leftrightarrow ((P\lor Q)\land (P\lor R))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (P\lor (Q\land R))\Leftrightarrow ((P\lor Q)\land (P\lor R))}</annotation>
</semantics>
</math></span><img src="./b320f1fbd3369ea11f930908122d66148d3073f0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:38.014ex; height:2.843ex;" alt="{\displaystyle (P\lor (Q\land R))\Leftrightarrow ((P\lor Q)\land (P\lor R))}" loading="lazy"></span></li></ol></li></ol>
</div></td></tr></tbody></table>
<p>In <a href="Mathematics" title="Mathematics">mathematics</a>, the <b>distributive property</b> of <a href="Binary_operation" title="Binary operation">binary operations</a> is a generalization of the <b>distributive law</b>, which asserts that the equality
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x\cdot (y+z)=x\cdot y+x\cdot z}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>y</mi>
<mo>+</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>y</mi>
<mo>+</mo>
<mi>x</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>z</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x\cdot (y+z)=x\cdot y+x\cdot z}</annotation>
</semantics>
</math></span></span>
is always true in <a href="Elementary_algebra" title="Elementary algebra">elementary algebra</a>.
For example, in <a href="Elementary_arithmetic" title="Elementary arithmetic">elementary arithmetic</a>, one has
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 2\cdot (1+3)=(2\cdot 1)+(2\cdot 3).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>2</mn>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo>+</mo>
<mn>3</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mo stretchy="false">(</mo>
<mn>2</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>3</mn>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 2\cdot (1+3)=(2\cdot 1)+(2\cdot 3).}</annotation>
</semantics>
</math></span></span>
Therefore, one would say that <a href="Multiplication" title="Multiplication">multiplication</a> <i>distributes</i> over <a href="Addition" title="Addition">addition</a>.
</p><p>This basic property of numbers is part of the definition of most <a href="Algebraic_structure" title="Algebraic structure">algebraic structures</a> that have two operations called addition and multiplication, such as <a href="Complex_number" title="Complex number">complex numbers</a>, <a href="Polynomial" title="Polynomial">polynomials</a>, <a href="Matrix_(mathematics)" title="Matrix (mathematics)">matrices</a>, <a href="Ring_(mathematics)" title="Ring (mathematics)">rings</a>, and <a href="Field_(mathematics)" title="Field (mathematics)">fields</a>. It is also encountered in <a href="Boolean_algebra" title="Boolean algebra">Boolean algebra</a> and <a href="Mathematical_logic" title="Mathematical logic">mathematical logic</a>, where each of the <a href="Logical_and" class="mw-redirect" title="Logical and">logical and</a> (denoted <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\land \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\land \,}</annotation>
</semantics>
</math></span><img src="./81fa9a1bf2fd8fe99a8f955e4c2b2cce22fc3b71.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.009ex;" alt="{\displaystyle \,\land \,}" loading="lazy"></span>) and the <a href="Logical_or" class="mw-redirect" title="Logical or">logical or</a> (denoted <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\lor \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\lor \,}</annotation>
</semantics>
</math></span><img src="./11b9e8d57e725d846e685feb42fc447fd094fbf2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.009ex;" alt="{\displaystyle \,\lor \,}" loading="lazy"></span>) distributes over the other.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Definition">Definition</h2></div>
<p>Given a <a href="Set_(mathematics)" title="Set (mathematics)">set</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S}</annotation>
</semantics>
</math></span><img src="./4611d85173cd3b508e67077d4a1252c9c05abca2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.499ex; height:2.176ex;" alt="{\displaystyle S}" loading="lazy"></span> and two <a href="Binary_operator" class="mw-redirect" title="Binary operator">binary operators</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> on <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S,}</annotation>
</semantics>
</math></span><img src="./e0bcd8516b165aaacb234616d7d2d23478a35be7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.146ex; height:2.509ex;" alt="{\displaystyle S,}" loading="lazy"></span>
</p>
<ul><li>the operation <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> is <em>left-distributive</em> over (or with respect to) <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> if, <a href="Given_any" class="mw-redirect" title="Given any">given any</a> elements <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x,y,{\text{ and }}z}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>,</mo>
<mi>y</mi>
<mo>,</mo>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mi>z</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x,y,{\text{ and }}z}</annotation>
</semantics>
</math></span><img src="./23bd270db6b290e4ed3e2e2dd6452dbee3b210a5.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:10.55ex; height:2.509ex;" alt="{\displaystyle x,y,{\text{ and }}z}" loading="lazy"></span> of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S,}</annotation>
</semantics>
</math></span><img src="./e0bcd8516b165aaacb234616d7d2d23478a35be7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.146ex; height:2.509ex;" alt="{\displaystyle S,}" loading="lazy"></span></li></ul>
<p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x*(y+z)=(x*y)+(x*z);}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>∗<!-- ∗ --></mo>
<mo stretchy="false">(</mo>
<mi>y</mi>
<mo>+</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>∗<!-- ∗ --></mo>
<mi>y</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>∗<!-- ∗ --></mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>;</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x*(y+z)=(x*y)+(x*z);}</annotation>
</semantics>
</math></span></span>
</p>
<ul><li>the operation <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> is <em>right-distributive</em> over <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> if, given any elements <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x,y,{\text{ and }}z}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>x</mi>
<mo>,</mo>
<mi>y</mi>
<mo>,</mo>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mi>z</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x,y,{\text{ and }}z}</annotation>
</semantics>
</math></span><img src="./23bd270db6b290e4ed3e2e2dd6452dbee3b210a5.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:10.55ex; height:2.509ex;" alt="{\displaystyle x,y,{\text{ and }}z}" loading="lazy"></span> of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S,}</annotation>
</semantics>
</math></span><img src="./e0bcd8516b165aaacb234616d7d2d23478a35be7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.146ex; height:2.509ex;" alt="{\displaystyle S,}" loading="lazy"></span></li></ul>
<p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (y+z)*x=(y*x)+(z*x);}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>y</mi>
<mo>+</mo>
<mi>z</mi>
<mo stretchy="false">)</mo>
<mo>∗<!-- ∗ --></mo>
<mi>x</mi>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mi>y</mi>
<mo>∗<!-- ∗ --></mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mo stretchy="false">(</mo>
<mi>z</mi>
<mo>∗<!-- ∗ --></mo>
<mi>x</mi>
<mo stretchy="false">)</mo>
<mo>;</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (y+z)*x=(y*x)+(z*x);}</annotation>
</semantics>
</math></span></span>
</p>
<ul><li>and the operation <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> is <em>distributive</em> over <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> if it is left- and right-distributive.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></li></ul>
<p>When <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> is <a href="Commutative" class="mw-redirect" title="Commutative">commutative</a>, the three conditions above are <a href="Logical_equivalence" title="Logical equivalence">logically equivalent</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Meaning">Meaning</h2></div>
<p>The operators used for examples in this section are those of the usual <a href="Addition" title="Addition">addition</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> and <a href="Multiplication" title="Multiplication">multiplication</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\cdot .\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>⋅<!-- ⋅ --></mo>
<mo>.</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\cdot .\,}</annotation>
</semantics>
</math></span><img src="./95b537ae7218b42b3af6d07796fbaac8658029a0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.068ex; height:1.343ex;" alt="{\displaystyle \,\cdot .\,}" loading="lazy"></span>
</p><p>If the operation denoted <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \cdot }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo>⋅<!-- ⋅ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \cdot }</annotation>
</semantics>
</math></span><img src="./ba2c023bad1bd39ed49080f729cbf26bc448c9ba.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: 0.439ex; margin-bottom: -0.61ex; width:0.647ex; height:1.176ex;" alt="{\displaystyle \cdot }" loading="lazy"></span> is not commutative, there is a distinction between left-distributivity and right-distributivity:
</p><p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\cdot \left(b\pm c\right)=a\cdot b\pm a\cdot c\qquad {\text{ (left-distributive) }}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mrow>
<mo>(</mo>
<mrow>
<mi>b</mi>
<mo>±<!-- ± --></mo>
<mi>c</mi>
</mrow>
<mo>)</mo>
</mrow>
<mo>=</mo>
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>b</mi>
<mo>±<!-- ± --></mo>
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>c</mi>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> (left-distributive) </mtext>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\cdot \left(b\pm c\right)=a\cdot b\pm a\cdot c\qquad {\text{ (left-distributive) }}}</annotation>
</semantics>
</math></span></span>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (a\pm b)\cdot c=a\cdot c\pm b\cdot c\qquad {\text{ (right-distributive) }}.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>±<!-- ± --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mi>c</mi>
<mo>=</mo>
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>c</mi>
<mo>±<!-- ± --></mo>
<mi>b</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>c</mi>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> (right-distributive) </mtext>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (a\pm b)\cdot c=a\cdot c\pm b\cdot c\qquad {\text{ (right-distributive) }}.}</annotation>
</semantics>
</math></span></span>
</p><p>In either case, the distributive property can be described in words as:
</p><p>To multiply a <a href="Summation" title="Summation">sum</a> (or <a href="Difference_(mathematics)" class="mw-redirect" title="Difference (mathematics)">difference</a>) by a factor, each summand (or <a href="Minuend" class="mw-redirect" title="Minuend">minuend</a> and <a href="Subtrahend" class="mw-redirect" title="Subtrahend">subtrahend</a>) is multiplied by this factor and the resulting products are added (or subtracted).
</p><p>If the operation outside the parentheses (in this case, the multiplication) is commutative, then left-distributivity implies right-distributivity and vice versa, and one talks simply of <em>distributivity</em>.
</p><p>One example of an operation that is "only" right-distributive is division, which is not commutative:
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (a\pm b)\div c=a\div c\pm b\div c.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>±<!-- ± --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>÷<!-- ÷ --></mo>
<mi>c</mi>
<mo>=</mo>
<mi>a</mi>
<mo>÷<!-- ÷ --></mo>
<mi>c</mi>
<mo>±<!-- ± --></mo>
<mi>b</mi>
<mo>÷<!-- ÷ --></mo>
<mi>c</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (a\pm b)\div c=a\div c\pm b\div c.}</annotation>
</semantics>
</math></span></span>
In this case, left-distributivity does not apply:
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a\div (b\pm c)\neq a\div b\pm a\div c}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>÷<!-- ÷ --></mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>±<!-- ± --></mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>≠<!-- ≠ --></mo>
<mi>a</mi>
<mo>÷<!-- ÷ --></mo>
<mi>b</mi>
<mo>±<!-- ± --></mo>
<mi>a</mi>
<mo>÷<!-- ÷ --></mo>
<mi>c</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a\div (b\pm c)\neq a\div b\pm a\div c}</annotation>
</semantics>
</math></span></span>
</p><p>The distributive laws are among the axioms for <a href="Ring_(mathematics)" title="Ring (mathematics)">rings</a> (like the ring of <a href="Integer" title="Integer">integers</a>) and <a href="Field_(mathematics)" title="Field (mathematics)">fields</a> (like the field of <a href="Rational_number" title="Rational number">rational numbers</a>). Here multiplication is distributive over addition, but addition is not distributive over multiplication. Examples of structures with two operations that are each distributive over the other are <a href="Boolean_algebras" class="mw-redirect" title="Boolean algebras">Boolean algebras</a> such as the <a href="Algebra_of_sets" title="Algebra of sets">algebra of sets</a> or the <a href="Switching_algebra" class="mw-redirect" title="Switching algebra">switching algebra</a>.
</p><p>Multiplying sums can be put into words as follows: When a sum is multiplied by a sum, multiply each summand of a sum with each summand of the other sum (keeping track of signs) then add up all of the resulting products.
</p>
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Real_numbers">Real numbers</h3></div>
<p>In the following examples, the use of the distributive law on the set of real numbers <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \mathbb {R} }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">R</mi>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \mathbb {R} }</annotation>
</semantics>
</math></span><img src="./786849c765da7a84dbc3cce43e96aad58a5868dc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.678ex; height:2.176ex;" alt="{\displaystyle \mathbb {R} }" loading="lazy"></span> is illustrated. When multiplication is mentioned in elementary mathematics, it usually refers to this kind of multiplication. From the point of view of algebra, the real numbers form a <a href="Field_(mathematics)" title="Field (mathematics)">field</a>, which ensures the validity of the distributive law.
</p>
<style data-mw-deduplicate="TemplateStyles:r1228772891">
/* start https://en.wikipedia.org/ */
.mw-parser-output .glossary dt{margin-top:0.4em}.mw-parser-output .glossary dt+dt{margin-top:-0.2em}.mw-parser-output .glossary .templatequote{margin-top:0;margin-bottom:-0.5em}
/* end https://en.wikipedia.org/ */
</style>
<dl class="glossary">
<dt id="first_example_(mental_and_written_multiplication)"><dfn>First example (mental and written multiplication)</dfn></dt><dd>During mental arithmetic, distributivity is often used unconsciously:
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 6\cdot 16=6\cdot (10+6)=6\cdot 10+6\cdot 6=60+36=96}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>16</mn>
<mo>=</mo>
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mn>10</mn>
<mo>+</mo>
<mn>6</mn>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>10</mn>
<mo>+</mo>
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>6</mn>
<mo>=</mo>
<mn>60</mn>
<mo>+</mo>
<mn>36</mn>
<mo>=</mo>
<mn>96</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 6\cdot 16=6\cdot (10+6)=6\cdot 10+6\cdot 6=60+36=96}</annotation>
</semantics>
</math></span></span>
Thus, to calculate <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 6\cdot 16}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>16</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 6\cdot 16}</annotation>
</semantics>
</math></span><img src="./fd89adb8d6132a95129b7783671be1d3e482457a.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.166ex; height:2.176ex;" alt="{\displaystyle 6\cdot 16}" loading="lazy"></span> in one's head, one first multiplies <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 6\cdot 10}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>10</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 6\cdot 10}</annotation>
</semantics>
</math></span><img src="./0ff59738536cf087e57bf7f2db9abd6230ef70a0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.166ex; height:2.176ex;" alt="{\displaystyle 6\cdot 10}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 6\cdot 6}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>6</mn>
<mo>⋅<!-- ⋅ --></mo>
<mn>6</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 6\cdot 6}</annotation>
</semantics>
</math></span><img src="./f42e2271e617e7a3efef658b37bcf12188c5bf16.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:4.004ex; height:2.176ex;" alt="{\displaystyle 6\cdot 6}" loading="lazy"></span> and add the intermediate results. Written multiplication is also based on the distributive law.
</dd>
<dt id="second_example_(with_variables)"><dfn>Second example (with variables)</dfn></dt><dd>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 3a^{2}b\cdot (4a-5b)=3a^{2}b\cdot 4a-3a^{2}b\cdot 5b=12a^{3}b-15a^{2}b^{2}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>3</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>b</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mn>4</mn>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mn>5</mn>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mn>3</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>b</mi>
<mo>⋅<!-- ⋅ --></mo>
<mn>4</mn>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mn>3</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>b</mi>
<mo>⋅<!-- ⋅ --></mo>
<mn>5</mn>
<mi>b</mi>
<mo>=</mo>
<mn>12</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<mi>b</mi>
<mo>−<!-- − --></mo>
<mn>15</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 3a^{2}b\cdot (4a-5b)=3a^{2}b\cdot 4a-3a^{2}b\cdot 5b=12a^{3}b-15a^{2}b^{2}}</annotation>
</semantics>
</math></span></span>
</dd>
<dt id="third_example_(with_two_sums)"><dfn>Third example (with two sums)</dfn></dt><dd>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{aligned}(a+b)\cdot (a-b)&=a\cdot (a-b)+b\cdot (a-b)=a^{2}-ab+ba-b^{2}=a^{2}-b^{2}\\&=(a+b)\cdot a-(a+b)\cdot b=a^{2}+ba-ab-b^{2}=a^{2}-b^{2}\\\end{aligned}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true">
<mtr>
<mtd>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mi>a</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>+</mo>
<mi>b</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mi>a</mi>
<mi>b</mi>
<mo>+</mo>
<mi>b</mi>
<mi>a</mi>
<mo>−<!-- − --></mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mi>b</mi>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>+</mo>
<mi>b</mi>
<mi>a</mi>
<mo>−<!-- − --></mo>
<mi>a</mi>
<mi>b</mi>
<mo>−<!-- − --></mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\begin{aligned}(a+b)\cdot (a-b)&=a\cdot (a-b)+b\cdot (a-b)=a^{2}-ab+ba-b^{2}=a^{2}-b^{2}\\&=(a+b)\cdot a-(a+b)\cdot b=a^{2}+ba-ab-b^{2}=a^{2}-b^{2}\\\end{aligned}}}</annotation>
</semantics>
</math></span></span>
Here the distributive law was applied twice, and it does not matter which bracket is first multiplied out.
</dd>
<dt id="fourth_example"><dfn>Fourth example</dfn></dt><dd>Here the distributive law is applied the other way around compared to the previous examples. Consider
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 12a^{3}b^{2}-30a^{4}bc+18a^{2}b^{3}c^{2}\,.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>12</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>30</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mi>b</mi>
<mi>c</mi>
<mo>+</mo>
<mn>18</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<msup>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mspace width="thinmathspace"></mspace>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 12a^{3}b^{2}-30a^{4}bc+18a^{2}b^{3}c^{2}\,.}</annotation>
</semantics>
</math></span></span>
Since the factor <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 6a^{2}b}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>6</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>b</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 6a^{2}b}</annotation>
</semantics>
</math></span><img src="./6af50da0fe3d6990bbbc1629994f085ae41f725d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:4.444ex; height:2.676ex;" alt="{\displaystyle 6a^{2}b}" loading="lazy"></span> occurs in all summands, it can be factored out. That is, due to the distributive law one obtains
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 12a^{3}b^{2}-30a^{4}bc+18a^{2}b^{3}c^{2}=6a^{2}b\left(2ab-5a^{2}c+3b^{2}c^{2}\right).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>12</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>−<!-- − --></mo>
<mn>30</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>4</mn>
</mrow>
</msup>
<mi>b</mi>
<mi>c</mi>
<mo>+</mo>
<mn>18</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>3</mn>
</mrow>
</msup>
<msup>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>=</mo>
<mn>6</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>b</mi>
<mrow>
<mo>(</mo>
<mrow>
<mn>2</mn>
<mi>a</mi>
<mi>b</mi>
<mo>−<!-- − --></mo>
<mn>5</mn>
<msup>
<mi>a</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>c</mi>
<mo>+</mo>
<mn>3</mn>
<msup>
<mi>b</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<msup>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 12a^{3}b^{2}-30a^{4}bc+18a^{2}b^{3}c^{2}=6a^{2}b\left(2ab-5a^{2}c+3b^{2}c^{2}\right).}</annotation>
</semantics>
</math></span></span>
</dd>
</dl>
<div class="mw-heading mw-heading3"><h3 id="Matrices">Matrices</h3></div>
<p>The distributive law is valid for <a href="Matrix_multiplication" title="Matrix multiplication">matrix multiplication</a>. More precisely,
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (A+B)\cdot C=A\cdot C+B\cdot C}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>A</mi>
<mo>+</mo>
<mi>B</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mi>C</mi>
<mo>=</mo>
<mi>A</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>C</mi>
<mo>+</mo>
<mi>B</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>C</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (A+B)\cdot C=A\cdot C+B\cdot C}</annotation>
</semantics>
</math></span></span>
for all <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle l\times m}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>l</mi>
<mo>×<!-- × --></mo>
<mi>m</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle l\times m}</annotation>
</semantics>
</math></span><img src="./6ddaae109aa28b89decddf99f3f487c27e3cc42e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.574ex; height:2.176ex;" alt="{\displaystyle l\times m}" loading="lazy"></span>-matrices <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle A,B}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>A</mi>
<mo>,</mo>
<mi>B</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle A,B}</annotation>
</semantics>
</math></span><img src="./96c3298ea9aa77c226be56a7d8515baaa517b90b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:4.541ex; height:2.509ex;" alt="{\displaystyle A,B}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m\times n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
<mo>×<!-- × --></mo>
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m\times n}</annotation>
</semantics>
</math></span><img src="./12b23d207d23dd430b93320539abbb0bde84870d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.276ex; height:1.676ex;" alt="{\displaystyle m\times n}" loading="lazy"></span>-matrices <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle C,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>C</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle C,}</annotation>
</semantics>
</math></span><img src="./64528f031cdbe1f52bdaf4ba7a8401108c0d2dc2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.413ex; height:2.509ex;" alt="{\displaystyle C,}" loading="lazy"></span> as well as
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle A\cdot (B+C)=A\cdot B+A\cdot C}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>A</mi>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>B</mi>
<mo>+</mo>
<mi>C</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>A</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>B</mi>
<mo>+</mo>
<mi>A</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>C</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle A\cdot (B+C)=A\cdot B+A\cdot C}</annotation>
</semantics>
</math></span></span>
for all <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle l\times m}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>l</mi>
<mo>×<!-- × --></mo>
<mi>m</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle l\times m}</annotation>
</semantics>
</math></span><img src="./6ddaae109aa28b89decddf99f3f487c27e3cc42e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:5.574ex; height:2.176ex;" alt="{\displaystyle l\times m}" loading="lazy"></span>-matrices <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle A}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>A</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle A}</annotation>
</semantics>
</math></span><img src="./7daff47fa58cdfd29dc333def748ff5fa4c923e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.743ex; height:2.176ex;" alt="{\displaystyle A}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle m\times n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>m</mi>
<mo>×<!-- × --></mo>
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle m\times n}</annotation>
</semantics>
</math></span><img src="./12b23d207d23dd430b93320539abbb0bde84870d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.276ex; height:1.676ex;" alt="{\displaystyle m\times n}" loading="lazy"></span>-matrices <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle B,C.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>B</mi>
<mo>,</mo>
<mi>C</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle B,C.}</annotation>
</semantics>
</math></span><img src="./056927c4c024800fafba1e9b926b428655189e56.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:5.211ex; height:2.509ex;" alt="{\displaystyle B,C.}" loading="lazy"></span>
Because the commutative property does not hold for matrix multiplication, the second law does not follow from the first law. In this case, they are two different laws.
</p>
<div class="mw-heading mw-heading3"><h3 id="Other_examples">Other examples</h3></div>
<ul><li><a href="Ordinal_arithmetic#Multiplication" title="Ordinal arithmetic">Multiplication</a> of <a href="Ordinal_number" title="Ordinal number">ordinal numbers</a>, in contrast, is only left-distributive, not right-distributive.</li>
<li>The <a href="Cross_product" title="Cross product">cross product</a> is left- and right-distributive over <a href="Vector_addition" class="mw-redirect" title="Vector addition">vector addition</a>, though not commutative.</li>
<li>The <a href="Union_(set_theory)" title="Union (set theory)">union</a> of sets is distributive over <a href="Intersection_(set_theory)" title="Intersection (set theory)">intersection</a>, and intersection is distributive over union.</li>
<li><a href="Logical_disjunction" title="Logical disjunction">Logical disjunction</a> ("or") is distributive over <a href="Logical_conjunction" title="Logical conjunction">logical conjunction</a> ("and"), and vice versa.</li>
<li>For <a href="Real_number" title="Real number">real numbers</a> (and for any <a href="Totally_ordered_set" class="mw-redirect" title="Totally ordered set">totally ordered set</a>), the <a href="Maximum" class="mw-redirect" title="Maximum">maximum</a> operation is distributive over the <a href="Minimum" class="mw-redirect" title="Minimum">minimum</a> operation, and vice versa: <span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \max(a,\min(b,c))=\min(\max(a,b),\max(a,c))\quad {\text{ and }}\quad \min(a,\max(b,c))=\max(\min(a,b),\min(a,c)).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mspace width="1em"></mspace>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \max(a,\min(b,c))=\min(\max(a,b),\max(a,c))\quad {\text{ and }}\quad \min(a,\max(b,c))=\max(\min(a,b),\min(a,c)).}</annotation>
</semantics>
</math></span></span></li>
<li>For <a href="Integer" title="Integer">integers</a>, the <a href="Greatest_common_divisor" title="Greatest common divisor">greatest common divisor</a> is distributive over the <a href="Least_common_multiple" title="Least common multiple">least common multiple</a>, and vice versa: <span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \gcd(a,\operatorname {lcm} (b,c))=\operatorname {lcm} (\gcd(a,b),\gcd(a,c))\quad {\text{ and }}\quad \operatorname {lcm} (a,\gcd(b,c))=\gcd(\operatorname {lcm} (a,b),\operatorname {lcm} (a,c)).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>lcm</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>lcm</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mspace width="1em"></mspace>
<mi>lcm</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo movablelimits="true" form="prefix">gcd</mo>
<mo stretchy="false">(</mo>
<mi>lcm</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>,</mo>
<mi>lcm</mi>
<mo><!-- --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \gcd(a,\operatorname {lcm} (b,c))=\operatorname {lcm} (\gcd(a,b),\gcd(a,c))\quad {\text{ and }}\quad \operatorname {lcm} (a,\gcd(b,c))=\gcd(\operatorname {lcm} (a,b),\operatorname {lcm} (a,c)).}</annotation>
</semantics>
</math></span></span></li>
<li>For real numbers, addition distributes over the maximum operation, and also over the minimum operation: <span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a+\max(b,c)=\max(a+b,a+c)\quad {\text{ and }}\quad a+\min(b,c)=\min(a+b,a+c).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mo>+</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo movablelimits="true" form="prefix">max</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo>,</mo>
<mi>a</mi>
<mo>+</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mspace width="1em"></mspace>
<mi>a</mi>
<mo>+</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo>,</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mo movablelimits="true" form="prefix">min</mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo>,</mo>
<mi>a</mi>
<mo>+</mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a+\max(b,c)=\max(a+b,a+c)\quad {\text{ and }}\quad a+\min(b,c)=\min(a+b,a+c).}</annotation>
</semantics>
</math></span></span></li>
<li>For <a href="Binomial_(polynomial)" title="Binomial (polynomial)">binomial</a> multiplication, distribution is sometimes referred to as the <a href="FOIL_Method" class="mw-redirect" title="FOIL Method">FOIL Method</a><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> (First terms <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle ac,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mi>c</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle ac,}</annotation>
</semantics>
</math></span><img src="./7bdf6672c06648e01c79e7682e85fe7b7db858a1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.883ex; height:2.009ex;" alt="{\displaystyle ac,}" loading="lazy"></span> Outer <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle ad,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
<mi>d</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle ad,}</annotation>
</semantics>
</math></span><img src="./cda03365da0d88959e9823c213c70b11c91906c6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:3.093ex; height:2.509ex;" alt="{\displaystyle ad,}" loading="lazy"></span> Inner <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle bc,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>b</mi>
<mi>c</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle bc,}</annotation>
</semantics>
</math></span><img src="./43377610065af24bc7f7c8a8111627e568e91f30.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.651ex; height:2.509ex;" alt="{\displaystyle bc,}" loading="lazy"></span> and Last <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle bd}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>b</mi>
<mi>d</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle bd}</annotation>
</semantics>
</math></span><img src="./3bc109ffc2966e361a2018a1dc7301c2f193a0f1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.213ex; height:2.176ex;" alt="{\displaystyle bd}" loading="lazy"></span>) such as: <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (a+b)\cdot (c+d)=ac+ad+bc+bd.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo>⋅<!-- ⋅ --></mo>
<mo stretchy="false">(</mo>
<mi>c</mi>
<mo>+</mo>
<mi>d</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>a</mi>
<mi>c</mi>
<mo>+</mo>
<mi>a</mi>
<mi>d</mi>
<mo>+</mo>
<mi>b</mi>
<mi>c</mi>
<mo>+</mo>
<mi>b</mi>
<mi>d</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (a+b)\cdot (c+d)=ac+ad+bc+bd.}</annotation>
</semantics>
</math></span><img src="./3db8ca8a119bf4bea0f76213995c8f9c26c3ba78.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:36.595ex; height:2.843ex;" alt="{\displaystyle (a+b)\cdot (c+d)=ac+ad+bc+bd.}" loading="lazy"></span></li>
<li>In all <a href="Semirings" class="mw-redirect" title="Semirings">semirings</a>, including the <a href="Complex_number" title="Complex number">complex numbers</a>, the <a href="Quaternion" title="Quaternion">quaternions</a>, <a href="Polynomial" title="Polynomial">polynomials</a>, and <a href="Matrix_(mathematics)" title="Matrix (mathematics)">matrices</a>, multiplication distributes over addition: <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle u(v+w)=uv+uw,(u+v)w=uw+vw.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>u</mi>
<mo stretchy="false">(</mo>
<mi>v</mi>
<mo>+</mo>
<mi>w</mi>
<mo stretchy="false">)</mo>
<mo>=</mo>
<mi>u</mi>
<mi>v</mi>
<mo>+</mo>
<mi>u</mi>
<mi>w</mi>
<mo>,</mo>
<mo stretchy="false">(</mo>
<mi>u</mi>
<mo>+</mo>
<mi>v</mi>
<mo stretchy="false">)</mo>
<mi>w</mi>
<mo>=</mo>
<mi>u</mi>
<mi>w</mi>
<mo>+</mo>
<mi>v</mi>
<mi>w</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle u(v+w)=uv+uw,(u+v)w=uw+vw.}</annotation>
</semantics>
</math></span><img src="./381f127e90f17160bceb3caf8e9a7caacf865ba1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:42.337ex; height:2.843ex;" alt="{\displaystyle u(v+w)=uv+uw,(u+v)w=uw+vw.}" loading="lazy"></span></li>
<li>In all <a href="Algebra_over_a_field" title="Algebra over a field">algebras over a field</a>, including the <a href="Octonion" title="Octonion">octonions</a> and other <a href="Non-associative_algebra" title="Non-associative algebra">non-associative algebras</a>, multiplication distributes over addition.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Propositional_logic">Propositional logic</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1246091330">
/* start https://en.wikipedia.org/ */
.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:640px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}body.skin--responsive .mw-parser-output .sidebar a>img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-night .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-list-title,html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle{background:transparent!important}html.skin-theme-clientpref-os .mw-parser-output .sidebar:not(.notheme) .sidebar-title-with-pretitle a{color:var(--color-progressive)!important}}@media print{body.ns-0 .mw-parser-output .sidebar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><table class="sidebar nomobile nowraplinks plainlist"><tbody><tr><th class="sidebar-title"><a href="Rule_of_inference" title="Rule of inference">Transformation rules</a></th></tr><tr><th class="sidebar-heading" style="background:#eaeaff;;background:#ddf;font-size:110%; border-bottom:1px #fefefe solid;">
<a href="Propositional_calculus" class="mw-redirect" title="Propositional calculus">Propositional calculus</a></th></tr><tr><th class="sidebar-heading" style="background:#eaeaff;">
<a href="Rule_of_inference" title="Rule of inference">Rules of inference</a> (<a href="List_of_rules_of_inference" title="List of rules of inference">List</a>)</th></tr><tr><td class="sidebar-content" style="padding-top:0.15em;">
<ul><li><a href="Conditional_proof" title="Conditional proof"><span>Implication introduction</span></a> / <a href="Modus_ponens" title="Modus ponens"><span title="A→B, A ⊢ B">elimination (<i>modus ponens</i>)</span></a></li>
<li><a href="Biconditional_introduction" title="Biconditional introduction"><span title="A→B, B→A ⊢ A↔B">Biconditional introduction</span></a> / <a href="Biconditional_elimination" title="Biconditional elimination"><span title="A↔B ⊢ A→B">elimination</span></a></li>
<li><a href="Conjunction_introduction" title="Conjunction introduction"><span title="A, B ⊢ A∧B">Conjunction introduction</span></a> / <a href="Conjunction_elimination" title="Conjunction elimination"><span title="A∧B ⊢ A">elimination</span></a></li>
<li><a href="Disjunction_introduction" title="Disjunction introduction"><span title="A ⊢ A∨B">Disjunction introduction</span></a> / <a href="Disjunction_elimination" title="Disjunction elimination"><span title="A∨B, A→C, B→C ⊢ C">elimination</span></a></li>
<li><a href="Disjunctive_syllogism" title="Disjunctive syllogism"><span title="A∨B, ¬A ⊢ B">Disjunctive</span></a> / <a href="Hypothetical_syllogism" title="Hypothetical syllogism"><span title="A→B, B→C ⊢ A→C">hypothetical syllogism</span></a></li>
<li><a href="Constructive_dilemma" title="Constructive dilemma"><span title="A→P, B→Q, A∨B ⊢ P∨Q">Constructive</span></a> / <a href="Destructive_dilemma" title="Destructive dilemma"><span title="A→P, B→Q, ¬P∨¬Q ⊢ ¬A∨¬B">destructive dilemma</span></a></li>
<li><a href="Absorption_(logic)" title="Absorption (logic)"><span title="A→B ⊢ A→A∧B">Absorption</span></a> / <a href="Modus_tollens" title="Modus tollens"><span title="A→B, ¬B ⊢ ¬A"><i>modus tollens</i></span></a> / <a href="Modus_ponendo_tollens" title="Modus ponendo tollens"><span title="¬(A∧B), A ⊢ ¬B"><i>modus ponendo tollens</i></span></a></li>
<li><a href="Modus_non_excipiens" title="Modus non excipiens">Modus non excipiens</a></li>
<li><a href="Negation_introduction" title="Negation introduction">Negation introduction</a></li></ul></td>
</tr><tr><th class="sidebar-heading" style="background:#eaeaff;">
<a href="Rule_of_replacement" title="Rule of replacement">Rules of replacement</a></th></tr><tr><td class="sidebar-content" style="padding-top:0.15em;">
<div class="hlist">
<ul><li><a href="Associative_property#Propositional_logic" title="Associative property"><span title="A∨(B∨C) = (A∨B)∨C">Associativity</span></a></li>
<li><a href="Commutative_property#Propositional_logic" title="Commutative property"><span title="A∨B = B∨A">Commutativity</span></a></li>
<li><a class="mw-selflink-fragment" href="#Propositional_logic"><span title="A∧(B∨C) = (A∧B)∨(A∧C)">Distributivity</span></a></li>
<li><a href="Double_negation" title="Double negation"><span title="¬¬A = A">Double negation</span></a></li>
<li><a href="De_Morgan's_laws" title="De Morgan's laws">De Morgan's laws</a></li>
<li><a href="Transposition_(logic)" class="mw-redirect" title="Transposition (logic)">Transposition</a></li>
<li><a href="Material_implication_(rule_of_inference)" title="Material implication (rule of inference)"><span title="A→B ⊢ ¬A∨B">Material implication</span></a></li>
<li><a href="Exportation_(logic)" title="Exportation (logic)"><span title="(A∧B)→C ⊢ A→(B→C)">Exportation</span></a></li>
<li><a href="Tautology_(rule_of_inference)" title="Tautology (rule of inference)"><span title="A∨A = A">Tautology</span></a></li></ul>
</div></td>
</tr><tr><th class="sidebar-heading" style="background:#eaeaff;;background:#ddf;font-size:110%;">
<a href="First-order_logic" title="First-order logic">Predicate logic</a></th></tr><tr><th class="sidebar-heading" style="background:#eaeaff;">
<a href="Rule_of_inference" title="Rule of inference">Rules of inference</a></th></tr><tr><td class="sidebar-content" style="padding-top:0.15em;">
<ul><li><a href="Universal_generalization" title="Universal generalization">Universal generalization</a> / <a href="Universal_instantiation" title="Universal instantiation">instantiation</a></li>
<li><a href="Existential_generalization" title="Existential generalization">Existential generalization</a> / <a href="Existential_instantiation" title="Existential instantiation">instantiation</a></li></ul></td>
</tr><tr><td class="sidebar-navbar"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></td></tr></tbody></table>
<div class="mw-heading mw-heading3"><h3 id="Rule_of_replacement">Rule of replacement</h3></div>
<p>In standard truth-functional propositional logic, <em>distribution</em><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> in logical proofs uses two valid <a href="Rule_of_replacement" title="Rule of replacement">rules of replacement</a> to expand individual occurrences of certain <a href="Logical_connective" title="Logical connective">logical connectives</a>, within some <a href="Logical_formula" class="mw-redirect" title="Logical formula">formula</a>, into separate applications of those connectives across subformulas of the given formula. The rules are
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (P\land (Q\lor R))\Leftrightarrow ((P\land Q)\lor (P\land R))\qquad {\text{ and }}\qquad (P\lor (Q\land R))\Leftrightarrow ((P\lor Q)\land (P\lor R))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mspace width="2em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mspace width="2em"></mspace>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (P\land (Q\lor R))\Leftrightarrow ((P\land Q)\lor (P\land R))\qquad {\text{ and }}\qquad (P\lor (Q\land R))\Leftrightarrow ((P\lor Q)\land (P\lor R))}</annotation>
</semantics>
</math></span></span>
where "<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \Leftrightarrow }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">⇔<!-- ⇔ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \Leftrightarrow }</annotation>
</semantics>
</math></span><img src="./64812e13399c20cf3ce94e049d3bb2d85f26abcf.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.324ex; height:1.843ex;" alt="{\displaystyle \Leftrightarrow }" loading="lazy"></span>", also written <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\equiv ,\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>≡<!-- ≡ --></mo>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\equiv ,\,}</annotation>
</semantics>
</math></span><img src="./1b33bda7fbff75407e9373819734938575c1cd1b.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:3.229ex; height:2.009ex;" alt="{\displaystyle \,\equiv ,\,}" loading="lazy"></span> is a <a href="Metalogic" title="Metalogic">metalogical</a> <a href="Symbol_(formal)" title="Symbol (formal)">symbol</a> representing "can be replaced in a proof with" or "is <a href="Logical_equivalence" title="Logical equivalence">logically equivalent</a> to".
</p>
<div class="mw-heading mw-heading3"><h3 id="Truth_functional_connectives">Truth functional connectives</h3></div>
<p><em>Distributivity</em> is a property of some logical connectives of truth-functional <a href="Propositional_logic" title="Propositional logic">propositional logic</a>. The following logical equivalences demonstrate that distributivity is a property of particular connectives. The following are truth-functional <a href="Tautology_(logic)" title="Tautology (logic)">tautologies</a>.
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{alignedat}{13}&(P&&\;\land &&(Q\lor R))&&\;\Leftrightarrow \;&&((P\land Q)&&\;\lor (P\land R))&&\quad {\text{ Distribution of }}&&{\text{ conjunction }}&&{\text{ over }}&&{\text{ disjunction }}\\&(P&&\;\lor &&(Q\land R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\;\land (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\land &&(Q\land R))&&\;\Leftrightarrow \;&&((P\land Q)&&\;\land (P\land R))&&\quad {\text{ Distribution of }}&&{\text{ conjunction }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\lor &&(Q\lor R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\;\lor (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ disjunction }}\\&(P&&\to &&(Q\to R))&&\;\Leftrightarrow \;&&((P\to Q)&&\to (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ }}&&{\text{ }}\\&(P&&\to &&(Q\leftrightarrow R))&&\;\Leftrightarrow \;&&((P\to Q)&&\leftrightarrow (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ over }}&&{\text{ equivalence }}\\&(P&&\to &&(Q\land R))&&\;\Leftrightarrow \;&&((P\to Q)&&\;\land (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\lor &&(Q\leftrightarrow R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\leftrightarrow (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ equivalence }}\\\end{alignedat}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtable columnalign="right left right left right left right left right left right left right left right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em" displaystyle="true">
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> conjunction </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> disjunction </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> disjunction </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> conjunction </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> conjunction </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> conjunction </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> disjunction </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> disjunction </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">→<!-- → --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">→<!-- → --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> implication </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">→<!-- → --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo stretchy="false">↔<!-- ↔ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">↔<!-- ↔ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> implication </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> equivalence </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">→<!-- → --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> implication </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> conjunction </mtext>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>P</mi>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo stretchy="false">↔<!-- ↔ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">↔<!-- ↔ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mspace width="1em"></mspace>
<mrow class="MJX-TeXAtom-ORD">
<mtext> Distribution of </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> disjunction </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> over </mtext>
</mrow>
</mtd>
<mtd></mtd>
<mtd>
<mrow class="MJX-TeXAtom-ORD">
<mtext> equivalence </mtext>
</mrow>
</mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\begin{alignedat}{13}&(P&&\;\land &&(Q\lor R))&&\;\Leftrightarrow \;&&((P\land Q)&&\;\lor (P\land R))&&\quad {\text{ Distribution of }}&&{\text{ conjunction }}&&{\text{ over }}&&{\text{ disjunction }}\\&(P&&\;\lor &&(Q\land R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\;\land (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\land &&(Q\land R))&&\;\Leftrightarrow \;&&((P\land Q)&&\;\land (P\land R))&&\quad {\text{ Distribution of }}&&{\text{ conjunction }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\lor &&(Q\lor R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\;\lor (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ disjunction }}\\&(P&&\to &&(Q\to R))&&\;\Leftrightarrow \;&&((P\to Q)&&\to (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ }}&&{\text{ }}\\&(P&&\to &&(Q\leftrightarrow R))&&\;\Leftrightarrow \;&&((P\to Q)&&\leftrightarrow (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ over }}&&{\text{ equivalence }}\\&(P&&\to &&(Q\land R))&&\;\Leftrightarrow \;&&((P\to Q)&&\;\land (P\to R))&&\quad {\text{ Distribution of }}&&{\text{ implication }}&&{\text{ over }}&&{\text{ conjunction }}\\&(P&&\;\lor &&(Q\leftrightarrow R))&&\;\Leftrightarrow \;&&((P\lor Q)&&\leftrightarrow (P\lor R))&&\quad {\text{ Distribution of }}&&{\text{ disjunction }}&&{\text{ over }}&&{\text{ equivalence }}\\\end{alignedat}}}</annotation>
</semantics>
</math></span></span>
</p>
<dl><dt>Double distribution</dt>
<dd></dd></dl>
<p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\begin{alignedat}{13}&((P\land Q)&&\;\lor (R\land S))&&\;\Leftrightarrow \;&&(((P\lor R)\land (P\lor S))&&\;\land ((Q\lor R)\land (Q\lor S)))&&\\&((P\lor Q)&&\;\land (R\lor S))&&\;\Leftrightarrow \;&&(((P\land R)\lor (P\land S))&&\;\lor ((Q\land R)\lor (Q\land S)))&&\\\end{alignedat}}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtable columnalign="right left right left right left right left right left right left right left right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em 0em" displaystyle="true">
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>R</mi>
<mo>∧<!-- ∧ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∨<!-- ∨ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd></mtd>
</mtr>
<mtr>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∨<!-- ∨ --></mo>
<mi>Q</mi>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>R</mi>
<mo>∨<!-- ∨ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo stretchy="false">⇔<!-- ⇔ --></mo>
<mspace width="thickmathspace"></mspace>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>P</mi>
<mo>∧<!-- ∧ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd>
<mi></mi>
<mspace width="thickmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>R</mi>
<mo stretchy="false">)</mo>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>Q</mi>
<mo>∧<!-- ∧ --></mo>
<mi>S</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mtd>
<mtd></mtd>
<mtd></mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\begin{alignedat}{13}&((P\land Q)&&\;\lor (R\land S))&&\;\Leftrightarrow \;&&(((P\lor R)\land (P\lor S))&&\;\land ((Q\lor R)\land (Q\lor S)))&&\\&((P\lor Q)&&\;\land (R\lor S))&&\;\Leftrightarrow \;&&(((P\land R)\lor (P\land S))&&\;\lor ((Q\land R)\lor (Q\land S)))&&\\\end{alignedat}}}</annotation>
</semantics>
</math></span></span>
</p>
<div class="mw-heading mw-heading2"><h2 id="Distributivity_and_rounding">Distributivity and rounding</h2></div>
<p>In approximate arithmetic, such as <a href="Floating-point_arithmetic" title="Floating-point arithmetic">floating-point arithmetic</a>, the distributive property of multiplication (and division) over addition may fail because of the limitations of <a href="Arithmetic_precision" class="mw-redirect" title="Arithmetic precision">arithmetic precision</a>. For example, the identity <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 1/3+1/3+1/3=(1+1+1)/3}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>3</mn>
<mo>+</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>3</mn>
<mo>+</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>3</mn>
<mo>=</mo>
<mo stretchy="false">(</mo>
<mn>1</mn>
<mo>+</mo>
<mn>1</mn>
<mo>+</mo>
<mn>1</mn>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo>/</mo>
</mrow>
<mn>3</mn>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 1/3+1/3+1/3=(1+1+1)/3}</annotation>
</semantics>
</math></span><img src="./51ccb7fdb28bb849d601f94baee3e760e74a0dd7.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:32.544ex; height:2.843ex;" alt="{\displaystyle 1/3+1/3+1/3=(1+1+1)/3}" loading="lazy"></span> fails in <a href="Decimal_arithmetic" class="mw-redirect" title="Decimal arithmetic">decimal arithmetic</a>, regardless of the number of <a href="Significant_digit" class="mw-redirect" title="Significant digit">significant digits</a>. Methods such as <a href="Banker's_rounding" class="mw-redirect" title="Banker's rounding">banker's rounding</a> may help in some cases, as may increasing the precision used, but ultimately some calculation errors are inevitable.
</p>
<div class="mw-heading mw-heading2"><h2 id="In_rings_and_other_structures">In rings and other structures</h2></div>
<p>Distributivity is most commonly found in <a href="Semiring" title="Semiring">semirings</a>, notably the particular cases of <a href="Ring_(algebra)" class="mw-redirect" title="Ring (algebra)">rings</a> and <a href="Distributive_lattice" title="Distributive lattice">distributive lattices</a>.
</p><p>A semiring has two binary operations, commonly denoted <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+\,}</annotation>
</semantics>
</math></span><img src="./31b3c23fb2245f1f8bc8dde4d8c42f582ce4d3e3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,+\,}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*,}</annotation>
</semantics>
</math></span><img src="./363b631548acd06a2ef40d5de331217f00c8c8ad.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.196ex; height:2.009ex;" alt="{\displaystyle \,*,}" loading="lazy"></span> and requires that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,*\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∗<!-- ∗ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,*\,}</annotation>
</semantics>
</math></span><img src="./52256498cbe97c2c8db8dfdaacff53b620d9ca2d.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:1.937ex; height:1.509ex;" alt="{\displaystyle \,*\,}" loading="lazy"></span> must distribute over <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,+.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>+</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,+.}</annotation>
</semantics>
</math></span><img src="./da04993bc384d00e6a8dc409652b29e04a4e3218.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.842ex; height:2.176ex;" alt="{\displaystyle \,+.}" loading="lazy"></span>
</p><p>A ring is a semiring with additive inverses.
</p><p>A <a href="Lattice_(order)" title="Lattice (order)">lattice</a> is another kind of <a href="Algebraic_structure" title="Algebraic structure">algebraic structure</a> with two binary operations, <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\land {\text{ and }}\lor .}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mtext> and </mtext>
</mrow>
<mo>∨<!-- ∨ --></mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\land {\text{ and }}\lor .}</annotation>
</semantics>
</math></span><img src="./66e244ab60111ffeac54f723ce13d45061aa4669.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:9.043ex; height:2.176ex;" alt="{\displaystyle \,\land {\text{ and }}\lor .}" loading="lazy"></span>
If either of these operations distributes over the other (say <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\land \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\land \,}</annotation>
</semantics>
</math></span><img src="./81fa9a1bf2fd8fe99a8f955e4c2b2cce22fc3b71.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.009ex;" alt="{\displaystyle \,\land \,}" loading="lazy"></span> distributes over <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\lor }">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\lor }</annotation>
</semantics>
</math></span><img src="./dbe7b3298f2837104b7851f46547fd687b8833c1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.937ex; height:2.009ex;" alt="{\displaystyle \,\lor }" loading="lazy"></span>), then the reverse also holds (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\lor \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∨<!-- ∨ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\lor \,}</annotation>
</semantics>
</math></span><img src="./11b9e8d57e725d846e685feb42fc447fd094fbf2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.009ex;" alt="{\displaystyle \,\lor \,}" loading="lazy"></span> distributes over <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\land \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>∧<!-- ∧ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\land \,}</annotation>
</semantics>
</math></span><img src="./81fa9a1bf2fd8fe99a8f955e4c2b2cce22fc3b71.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:2.325ex; height:2.009ex;" alt="{\displaystyle \,\land \,}" loading="lazy"></span>), and the lattice is called distributive. See also <em><a href="Distributivity_(order_theory)" title="Distributivity (order theory)">Distributivity (order theory)</a></em>.
</p><p>A <a href="Boolean_algebra_(structure)" title="Boolean algebra (structure)">Boolean algebra</a> can be interpreted either as a special kind of ring (a <a href="Boolean_ring" title="Boolean ring">Boolean ring</a>) or a special kind of distributive lattice (a <a href="Boolean_lattice" class="mw-redirect" title="Boolean lattice">Boolean lattice</a>). Each interpretation is responsible for different distributive laws in the Boolean algebra.
</p><p>Similar structures without distributive laws are <a href="Near-ring" title="Near-ring">near-rings</a> and <a href="Near-field_(mathematics)" title="Near-field (mathematics)">near-fields</a> instead of rings and <a href="Division_ring" title="Division ring">division rings</a>. The operations are usually defined to be distributive on the right but not on the left.
</p>
<div class="mw-heading mw-heading2"><h2 id="Generalizations">Generalizations</h2></div>
<p>
</p><p>In several mathematical areas, generalized distributivity laws are considered. This may involve the weakening of the above conditions or the extension to infinitary operations. Especially in <a href="Order_theory" title="Order theory">order theory</a> one finds numerous important variants of distributivity, some of which include infinitary operations, such as the <a href="Infinite_distributive_law" class="mw-redirect" title="Infinite distributive law">infinite distributive law</a>; others being defined in the presence of only <em>one</em> binary operation, such as the according definitions and their relations are given in the article <a href="Distributivity_(order_theory)" title="Distributivity (order theory)">distributivity (order theory)</a>. This also includes the notion of a <a href="Completely_distributive_lattice" title="Completely distributive lattice">completely distributive lattice</a>.
</p><p>In the presence of an ordering relation, one can also weaken the above equalities by replacing <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,=\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>=</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,=\,}</annotation>
</semantics>
</math></span><img src="./936ee397fe5ec4b211f75366b8f9c2e9ddf415f5.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.171ex; width:2.582ex; height:1.343ex;" alt="{\displaystyle \,=\,}" loading="lazy"></span> by either <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\leq \,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>≤<!-- ≤ --></mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\leq \,}</annotation>
</semantics>
</math></span><img src="./24112548985eab096493f73f838580442780b57f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.582ex; height:2.176ex;" alt="{\displaystyle \,\leq \,}" loading="lazy"></span> or <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \,\geq .}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mspace width="thinmathspace"></mspace>
<mo>≥<!-- ≥ --></mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \,\geq .}</annotation>
</semantics>
</math></span><img src="./c87ac987e87f7d8f480d0bd692b182836a79c2b6.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:2.842ex; height:2.176ex;" alt="{\displaystyle \,\geq .}" loading="lazy"></span> Naturally, this will lead to meaningful concepts only in some situations. An application of this principle is the notion of <b>sub-distributivity</b> as explained in the article on <a href="Interval_arithmetic" title="Interval arithmetic">interval arithmetic</a>.
</p><p>In <a href="Category_theory" title="Category theory">category theory</a>, if <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (S,\mu ,\nu )}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>S</mi>
<mo>,</mo>
<mi>μ<!-- μ --></mi>
<mo>,</mo>
<mi>ν<!-- ν --></mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (S,\mu ,\nu )}</annotation>
</semantics>
</math></span><img src="./fa5baf0893a29df010cc54664c1699294a0e2cd3.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:8.01ex; height:2.843ex;" alt="{\displaystyle (S,\mu ,\nu )}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \left(S^{\prime },\mu ^{\prime },\nu ^{\prime }\right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow>
<mo>(</mo>
<mrow>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>,</mo>
<msup>
<mi>μ<!-- μ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>,</mo>
<msup>
<mi>ν<!-- ν --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \left(S^{\prime },\mu ^{\prime },\nu ^{\prime }\right)}</annotation>
</semantics>
</math></span><img src="./33ecb4074c83dff20c25558fc7c83771f24bb061.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:10.112ex; height:3.009ex;" alt="{\displaystyle \left(S^{\prime },\mu ^{\prime },\nu ^{\prime }\right)}" loading="lazy"></span> are <a href="Monad_(category_theory)" title="Monad (category theory)">monads</a> on a <a href="Category_(mathematics)" title="Category (mathematics)">category</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle C,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>C</mi>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle C,}</annotation>
</semantics>
</math></span><img src="./64528f031cdbe1f52bdaf4ba7a8401108c0d2dc2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.671ex; width:2.413ex; height:2.509ex;" alt="{\displaystyle C,}" loading="lazy"></span> a <b>distributive law</b> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S.S^{\prime }\to S^{\prime }.S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
<mo>.</mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo stretchy="false">→<!-- → --></mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>.</mo>
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S.S^{\prime }\to S^{\prime }.S}</annotation>
</semantics>
</math></span><img src="./f9be50ceef0b234f174ace523f897192a7d0648c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:13.093ex; height:2.509ex;" alt="{\displaystyle S.S^{\prime }\to S^{\prime }.S}" loading="lazy"></span> is a <a href="Natural_transformation" title="Natural transformation">natural transformation</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \lambda :S.S^{\prime }\to S^{\prime }.S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>λ<!-- λ --></mi>
<mo>:</mo>
<mi>S</mi>
<mo>.</mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo stretchy="false">→<!-- → --></mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>.</mo>
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \lambda :S.S^{\prime }\to S^{\prime }.S}</annotation>
</semantics>
</math></span><img src="./a897a135dd5bcd91cd577043b9ab7ed42beaca85.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:16.386ex; height:2.509ex;" alt="{\displaystyle \lambda :S.S^{\prime }\to S^{\prime }.S}" loading="lazy"></span> such that <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \left(S^{\prime },\lambda \right)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow>
<mo>(</mo>
<mrow>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
</mrow>
<mo>)</mo>
</mrow>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \left(S^{\prime },\lambda \right)}</annotation>
</semantics>
</math></span><img src="./2ecffc23629d9834920516c024403e789813d732.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:6.405ex; height:3.009ex;" alt="{\displaystyle \left(S^{\prime },\lambda \right)}" loading="lazy"></span> is a <a href="Lax_map_of_monads" class="mw-redirect" title="Lax map of monads">lax map of monads</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S\to S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>S</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S\to S}</annotation>
</semantics>
</math></span><img src="./bf53e44dfa263077b0945848b83632fe18efcb8c.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.613ex; height:2.176ex;" alt="{\displaystyle S\to S}" loading="lazy"></span> and <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (S,\lambda )}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>S</mi>
<mo>,</mo>
<mi>λ<!-- λ --></mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (S,\lambda )}</annotation>
</semantics>
</math></span><img src="./1f601909396ba6692513b4f0869f5f722a30a6c4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:5.698ex; height:2.843ex;" alt="{\displaystyle (S,\lambda )}" loading="lazy"></span> is a <a href="Colax_map_of_monads" class="mw-redirect" title="Colax map of monads">colax map of monads</a> <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S^{\prime }\to S^{\prime }.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo stretchy="false">→<!-- → --></mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S^{\prime }\to S^{\prime }.}</annotation>
</semantics>
</math></span><img src="./0cf2d798e2e0fc17544bda5edd1ddff03c597610.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:8.674ex; height:2.509ex;" alt="{\displaystyle S^{\prime }\to S^{\prime }.}" loading="lazy"></span> This is exactly the data needed to define a monad structure on <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S^{\prime }.S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mo>.</mo>
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S^{\prime }.S}</annotation>
</semantics>
</math></span><img src="./a89983e272be09df59bef76cf4b31ee2d0ee9ce2.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:4.74ex; height:2.509ex;" alt="{\displaystyle S^{\prime }.S}" loading="lazy"></span>: the multiplication map is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle S^{\prime }\mu .\mu ^{\prime }S^{2}.S^{\prime }\lambda S}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mi>μ<!-- μ --></mi>
<mo>.</mo>
<msup>
<mi>μ<!-- μ --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>.</mo>
<msup>
<mi>S</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mi>λ<!-- λ --></mi>
<mi>S</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle S^{\prime }\mu .\mu ^{\prime }S^{2}.S^{\prime }\lambda S}</annotation>
</semantics>
</math></span><img src="./b4beb4bfece742632c36ef7205ce459c5f7313d9.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:15.399ex; height:3.176ex;" alt="{\displaystyle S^{\prime }\mu .\mu ^{\prime }S^{2}.S^{\prime }\lambda S}" loading="lazy"></span> and the unit map is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \eta ^{\prime }S.\eta .}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msup>
<mi>η<!-- η --></mi>
<mrow class="MJX-TeXAtom-ORD">
<mi class="MJX-variant" mathvariant="normal">′<!-- ′ --></mi>
</mrow>
</msup>
<mi>S</mi>
<mo>.</mo>
<mi>η<!-- η --></mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \eta ^{\prime }S.\eta .}</annotation>
</semantics>
</math></span><img src="./6e11f87329493afede1c3b7a7f3b510c54e41ecf.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:6.208ex; height:3.009ex;" alt="{\displaystyle \eta ^{\prime }S.\eta .}" loading="lazy"></span> See: <a href="Distributive_law_between_monads" title="Distributive law between monads">distributive law between monads</a>.
</p><p>A <a href="Generalized_distributive_law" title="Generalized distributive law">generalized distributive law</a> has also been proposed in the area of <a href="Information_theory" title="Information theory">information theory</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Antidistributivity">Antidistributivity</h3></div>
<p>The ubiquitous <a href="Identity_(mathematics)" title="Identity (mathematics)">identity</a> that relates inverses to the binary operation in any <a href="Group_(mathematics)" title="Group (mathematics)">group</a>, namely <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (xy)^{-1}=y^{-1}x^{-1},}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>x</mi>
<mi>y</mi>
<msup>
<mo stretchy="false">)</mo>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mo>=</mo>
<msup>
<mi>y</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<msup>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mo>−<!-- − --></mo>
<mn>1</mn>
</mrow>
</msup>
<mo>,</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (xy)^{-1}=y^{-1}x^{-1},}</annotation>
</semantics>
</math></span><img src="./4dab799aac63d61877a832b3abd7a4f91937526f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.528ex; height:3.176ex;" alt="{\displaystyle (xy)^{-1}=y^{-1}x^{-1},}" loading="lazy"></span> which is taken as an axiom in the more general context of a <a href="Semigroup_with_involution" title="Semigroup with involution">semigroup with involution</a>, has sometimes been called an <b>antidistributive property</b> (of inversion as a <a href="Unary_operation" title="Unary operation">unary operation</a>).<sup id="cite_ref-BrinkKahl1997_5-0" class="reference"><a href="#cite_note-BrinkKahl1997-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p><p>In the context of a <a href="Near-ring" title="Near-ring">near-ring</a>, which removes the commutativity of the additively written group and assumes only one-sided distributivity, one can speak of (two-sided) <b>distributive elements</b> but also of <b>antidistributive elements</b>. The latter reverse the order of (the non-commutative) addition; assuming a left-nearring (i.e. one which all elements distribute when multiplied on the left), then an antidistributive element <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle a}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>a</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle a}</annotation>
</semantics>
</math></span><img src="./ffd2487510aa438433a2579450ab2b3d557e5edc.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:1.23ex; height:1.676ex;" alt="{\displaystyle a}" loading="lazy"></span> reverses the order of addition when multiplied to the right: <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (x+y)a=ya+xa.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>x</mi>
<mo>+</mo>
<mi>y</mi>
<mo stretchy="false">)</mo>
<mi>a</mi>
<mo>=</mo>
<mi>y</mi>
<mi>a</mi>
<mo>+</mo>
<mi>x</mi>
<mi>a</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (x+y)a=ya+xa.}</annotation>
</semantics>
</math></span><img src="./2e15bddd84508e144ea2c76078a764bf47136029.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:19.895ex; height:2.843ex;" alt="{\displaystyle (x+y)a=ya+xa.}" loading="lazy"></span><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p><p>In the study of <a href="Propositional_logic" title="Propositional logic">propositional logic</a> and <a href="Boolean_algebra" title="Boolean algebra">Boolean algebra</a>, the term <b>antidistributive law</b> is sometimes used to denote the interchange between conjunction and disjunction when implication factors over them:<sup id="cite_ref-Hehner1993_7-0" class="reference"><a href="#cite_note-Hehner1993-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (a\lor b)\Rightarrow c\equiv (a\Rightarrow c)\land (b\Rightarrow c)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>∨<!-- ∨ --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo>≡<!-- ≡ --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>∧<!-- ∧ --></mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (a\lor b)\Rightarrow c\equiv (a\Rightarrow c)\land (b\Rightarrow c)}</annotation>
</semantics>
</math></span></span>
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (a\land b)\Rightarrow c\equiv (a\Rightarrow c)\lor (b\Rightarrow c).}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>∧<!-- ∧ --></mo>
<mi>b</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo>≡<!-- ≡ --></mo>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>∨<!-- ∨ --></mo>
<mo stretchy="false">(</mo>
<mi>b</mi>
<mo stretchy="false">⇒<!-- ⇒ --></mo>
<mi>c</mi>
<mo stretchy="false">)</mo>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (a\land b)\Rightarrow c\equiv (a\Rightarrow c)\lor (b\Rightarrow c).}</annotation>
</semantics>
</math></span></span>
</p><p>These two <a href="Tautology_(logic)" title="Tautology (logic)">tautologies</a> are a direct consequence of the duality in <a href="De_Morgan's_laws" title="De Morgan's laws">De Morgan's laws</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
</div>
<div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="http://mathonline.wikidot.com/distributivity-of-binary-operations">Distributivity of Binary Operations</a> from Mathonline</span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">Kim Steward (2011) <a rel="nofollow" class="external text" href="http://www.wtamu.edu/academic/anns/mps/math/mathlab/beg_algebra/beg_alg_tut28_multpoly.htm">Multiplying Polynomials</a> from Virtual Math Lab at <a href="West_Texas_A%26M_University" title="West Texas A&M University">West Texas A&M University</a></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><a href="Elliott_Mendelson" title="Elliott Mendelson">Elliott Mendelson</a> (1964) <i>Introduction to Mathematical Logic</i>, page 21, D. Van Nostrand Company</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><a href="Alfred_Tarski" title="Alfred Tarski">Alfred Tarski</a> (1941) <i>Introduction to Logic</i>, page 52, <a href="Oxford_University_Press" title="Oxford University Press">Oxford University Press</a></span>
</li>
<li id="cite_note-BrinkKahl1997-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-BrinkKahl1997_5-0">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFChris_BrinkWolfram_KahlGunther_Schmidt1997" class="citation book cs1">Chris Brink; Wolfram Kahl; Gunther Schmidt (1997). <span class="id-lock-limited" title="Free access subject to limited trial, subscription normally required"><a rel="nofollow" class="external text" href="https://archive.org/details/relationalmethod00jips"><i>Relational Methods in Computer Science</i></a></span>. Springer. p. <a rel="nofollow" class="external text" href="https://archive.org/details/relationalmethod00jips/page/n16">4</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-3-211-82971-4</bdi>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite id="CITEREFCelestina_Cotti_FerreroGiovanni_Ferrero2002" class="citation book cs1">Celestina Cotti Ferrero; Giovanni Ferrero (2002). <i>Nearrings: Some Developments Linked to Semigroups and Groups</i>. Kluwer Academic Publishers. pp. 62 and 67. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1-4613-0267-4</bdi>.</cite></span>
</li>
<li id="cite_note-Hehner1993-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-Hehner1993_7-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFEric_C.R._Hehner1993" class="citation book cs1"><a href="Eric_Hehner" title="Eric Hehner">Eric C.R. Hehner</a> (1993). <i>A Practical Theory of Programming</i>. Springer Science & Business Media. p. 230. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1-4419-8596-5</bdi>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1290876196">
/* start https://en.wikipedia.org/ */
.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .infobox .side-box{font-size:100%}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1237033735">
/* start https://en.wikipedia.org/ */
@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}
/* end https://en.wikipedia.org/ */
</style><div class="side-box side-box-right sistersitebox">
<div class="side-box-flex">
<div class="side-box-image"><span class="noviewer" typeof="mw:File"></span></div>
<div class="side-box-text plainlist">Look up <i><b><a href="https://en.wiktionary.org/wiki/distributivity" class="extiw external" title="wiktionary:distributivity">distributivity</a></b></i> in Wiktionary, the free dictionary.</div></div>
</div>
<ul><li><a rel="nofollow" class="external text" href="http://www.cut-the-knot.org/Curriculum/Arithmetic/DistributiveLaw.shtml">A demonstration of the Distributive Law</a> for integer arithmetic (from <a href="Cut-the-knot" class="mw-redirect" title="Cut-the-knot">cut-the-knot</a>)</li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-19" href="https://en.wikipedia.org/wiki/?title=Distributive_property&oldid=1301362000">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>